// import request from '../utils/request';
import {get, post} from '../utils/request';
// export const fetchData = query => {
//     return request({
//         url: './table.json',
//         method: 'get',
//         params: query
//     });
// };

// sys
export const login = query => {
    return get({
        url: '/test/a',
        params: query
    });
};


// inout
export const addLog = data => {
    return post(
        '/drug/addLog',
        data
    );
};
export const queryLogList = data => {
    return post(
        '/drug/list',
        data
    );
};

export const queryOutList = data => {
    return post(
        '/drug/outlist',
        data
    );
};

export const drugOut = data => {
    return post(
        '/drug/out',
        data
    );
};

//dict

export const queryDictList = param => {
    return get('/dict/list',
        {});
};

export const queryTypeList = param => {
    return get('/dict/typelist',
        {dictTypeId:param});
};

export const saveDicts = data => {
    return post(
        '/dict/save',
        data
    );
};

